package com.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.SupplierBean;
import com.project.util.InfoResult;

import java.util.List;

/**
 * @author lyl
 * description:
 */
public interface ISupplierService {
    /**
     * 分页显示供应商信息
     *
     * @param pageNum
     * @param supplierName
     * @param supplierScope
     * @return
     */
    Page<SupplierBean> showSupplierByPage(int pageNum, String supplierName, String supplierScope);

    /**
     * 根据id查询供应商信息
     *
     * @param supplierId
     * @return
     */
    SupplierBean showSupplierById(int supplierId);

    /**
     * 添加新的供应商
     *
     * @return
     */
    InfoResult addSupplier(SupplierBean supplierBean);

    /**
     * 更新供应商信息
     *
     * @param supplierId
     * @param supplierPeo
     * @param tel
     * @return
     */
    InfoResult updateSupplier(int supplierId, String supplierPeo, String tel);

    /**
     * 查询所有供应商
     *
     * @return
     */
    List<SupplierBean> showAllSupplier();
}
